<template>
  <div id="app">
    <h1>{{name}}</h1>
    <div>{{detail}}</div>
  
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      name: '暂无内容',
      detail: '',
    }
  },
  mounted () {
    if (window.__POWERED_BY_QIANKUN__) {
      this.$rss.on('toogleArticle', (data) => {
          this.name = data.name;
          this.detail = data.detail;
      });
    } 
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
